<?php
include_once($_SERVER['DOCUMENT_ROOT'].'/admin/public/header.php'); 
// $_POST['pic'] = upload('pic');
$_POST['time']=time();
$res = add($config,'reply',$_POST);

// var_dump($time);die;
// var_dump($res);die;
// echo $res;die;

if($res){
	echo '<script>alert("添加成功！");window.location.href="/admin/reply/index.php"</script>';
}else{
	echo '<script>alert("添加失败！");window.location.href="/admin/reply/add.php"</script>';
}

mysql_close();